<?php
include 'checa_login.php';
include 'header.php';
include 'menu.php';

$sql = "SELECT * from usuario";

$query = mysql_query($sql, $conecta) or die(mysql_error());

$linha = mysql_fetch_assoc($query);

$total = mysql_num_rows($query);
?>
<div class="container" style="margin-top: 80px;">
    <form id="form" method="POST" action="salva_usuario.php">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title"><span class="glyphicon glyphicon-user"></span>&nbsp;Novo Usuário</h4>
                    </div>
                    <br>
                    <div class="panel-body">

                        <div class='col-md-12 form-group'>
                            <form accept-charset="UTF-8" action="/" class="require-validation" data-cc-on-file="false" data-stripe-publishable-key="pk_bQQaTxnaZlzv4FnnuZ28LFHccVSaj" id="payment-form" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /><input name="_method" type="hidden" value="PUT" /><input name="authenticity_token" type="hidden" value="qLZ9cScer7ZxqulsUWazw4x3cSEzv899SP/7ThPCOV8=" /></div>
                                <div class='form-row'>
                                    <div class='col-xs-12 form-group'>
                                        <label class='control-label'>Nome</label>
                                        <input id="nome" name="nome" class='form-control' size='20' type='text'>
                                    </div>
                                </div>
                                <div class='form-row'>
                                    <div class='col-xs-12 form-group card'>
                                        <label class='control-label'>Login</label>
                                        <input id="login" name="login" autocomplete='off' class='form-control card-number' size='20' type='text'>
                                    </div>
                                </div>
                                <div class='form-row'>
                                    <div class='col-xs-12 form-group card'>
                                        <label class='control-label'>Senha</label>
                                        <input id="senha" name="senha" autocomplete='off' class='form-control' size='20' type='password'>
                                    </div>
                                </div>
                                <div class='form-row'>
                                    <div class='col-xs-12 col-md-4 form-group card'>
                                        <label class='control-label'>Igreja</label>
                                        <select id="cd_igreja" name="cd_igreja" class="form-control">
                                            <option value="">Selecione</option>
                                            <option value="1">Campinas</option>
                                            <option value="2">Goiania</option>
                                        </select>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <div class="col-md-2 col-md-offset-10">
                    <button id="btn_novo" class="btn btn-primary" type="submit">Salvar</button> 
                </div>
            </div>
        </div>
    </form>
</div>
<?php
include 'footer.php';
?>
